import java.io.FileInputStream;

import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-04-23
 * Time: 21:26
 */
public class Scanner_thing {
    public static void main(String[] args) throws IOException {
        try(InputStream is =new FileInputStream("C:\\Users\\22652\\Desktop\\程序\\iron\\Java_4_23\\中文文档.txt")){
            Scanner sca=new Scanner(is, "UTF-8");
            while (sca.hasNext()){
                String s=sca.nextLine();
                System.out.println(s);
            }
        }
    }
}
